<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
    <head>
        <title>Thymeleaf tutorial: exercise 11</title>
        <link rel="stylesheet" href="../../../css/main-static.css" th:href="@{/css/main.css}" />
        <meta charset="utf-8" />
    </head>
    <body>
        <h1>Thymeleaf tutorial - exercise 11: bean values</h1>
        <h2>Product edition</h2>
        <form action="#" onsubmit="return false">
            <label for="name">Product name</label>
            <input type="text" id="name" name="name" value="Red chair" th:value="${product.description}" size="80 "/>
            <label for="price">Product price</label>
            <input type="text" id="price" name="price" value="350" th:value="${#numbers.formatDecimal(product.price, 1, 2)}" size="8" />
            <label for="available">Available from</label>
            <input type="text" id="available" name="available" value="28-Jun-2013" th:value="${#dates.format(product.availableFrom, 'dd-MMM-yyyy')}" size="15" />
            <input type="submit" />
        </form>
    </body>
</html>
